<?php


namespace App\Admin\Controllers;


use App\Admin\Forms\ShowAuditForm;
use App\Http\Logic\Common\Audit;
use App\Http\Logic\System\Menu;
use App\Models\AdminDepartment;
use App\Models\AdminItemStages;
use App\Utils\Helper;
use Dcat\Admin\Admin;
use Dcat\Admin\Grid\Displayers\Modal;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Layout\Content;
use Illuminate\Database\Eloquent\Model;
use App\Admin\Override\Grid;
use Illuminate\Support\Str;

class BaseController extends AdminController
{
    public function __construct()
    {
    }

    protected function js(array|string $js)
    {
        $time = time();
        array_map(fn($v) => Admin::js($v . '?t=' . $time), (array)$js);
    }

    protected function css(array|string $css)
    {
        $time = time();
        array_map(fn($v) => Admin::css($v . '?t=' . $time), (array)$css);
    }

}
